<include file='Common:header' />
<!-- /section:basics/navbar.layout -->
<div class="main-container" id="main-container">
	<!-- #section:basics/sidebar -->
	<include file='Common:left' />
	<!-- /section:basics/sidebar -->
	<div class="main-content">
		<div class="main-content-inner">
			<div class="page-content">
				<link rel="stylesheet" type="text/css" media="all" href="__PUBLIC__/sldate/daterangepicker-bs3.css" />
				<form name="admin_list_sea" class="form-search form-horizontal" method="post" action="{:U('index','id= '.$new['n_id'])}">
					<div class="row maintop">
						<div class="col-xs-12 col-sm-2">
							
							<select name="keytype">
								<option value="mobile" <if condition="($keytype eq 'mobile') or ($keytype eq '')">selected</if>>按手机</option>
								<option value="realname" <if condition="$keytype eq 'realname'">selected</if>>按姓名</option>
							</select>
						</div>
						<div class="col-xs-12 col-sm-4"><span style="color: #F1731E;line-height: 30px;">{:msubstr($new['news_title'],0,20)}-订单表</span></div>
						<div class="col-xs-12 col-sm-3 hidden-xs btn-sespan">
							<div class="input-group">
										<span class="input-group-addon">
											<i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
										</span>
								<input type="text"  name="ctime" id="ctime" class="sl-date" value="{$sldate}" placeholder="点击选择日期范围"/>
							</div>
						</div>


						<div class="col-xs-12 col-sm-3 btn-sespan">
							<div class="input-group">
									<span class="input-group-addon">
										<i class="ace-icon fa fa-check"></i>
									</span>
								<input type="text" name="key" id="key" class="form-control search-query admin_sea" value="{$keyy}" placeholder="输入需查询的关键字" />
									<span class="input-group-btn">
										<button type="submit" class="btn btn-xs btm-input btn-purple">
											<span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
											搜索
										</button>
									</span>
							</div>
						</div>

						<div class="input-group-btn">
							<a href="{:U('export',array('id' => $new['n_id']))}">
								<button type="button" class="btn btn-xs all-btn btn-purple">
									<span class="ace-icon fa fa-globe icon-on-right bigger-110"></span>
									导出数据
								</button>
							</a>
						</div>


					</div>
				</form>



				<div class="row">
					<div class="col-xs-12">
						<div>
							<form id="alldel" name="alldel" method="post" action="{:U('alldel')}" >
								<input name="p" id="p" value="{:I('p',1)}" type="hidden" />
								<div class="table-responsive">
									<table class="table table-striped table-bordered table-hover" id="dynamic-table">
										<thead>
										<tr>
											<th class="hidden-xs center">
												<label class="pos-rel">
													<input type="checkbox" class="ace"  id='chkAll' onclick='CheckAll(this.form)' value="全选"/>
													<span class="lbl"></span>															</label>											</th>
											<th class="hidden-xs">ID</th>
											<th>姓名</th>
											<th>电话</th>
											<th >地址</th>
											
											<th class="hidden-xs">订单详情</th>
											
											<th class="hidden-xs">提交时间</th>
											<th class="hidden-xs">备注</th>
											<th style="border-right:#CCC solid 1px;">操作</th>
										</tr>
										</thead>

										<tbody>

										<volist name="list" id="vss">
											<tr>
												<td class="hidden-xs" align="center">
													<label class="pos-rel">
														<input name='n_id[]' id="navid" class="ace"  type='checkbox' value='{$vss.id}'>
														<span class="lbl"></span>
													</label>
												</td>
												<td class="hidden-xs" align="center">{$vss.id}</td>
												<td>{$vss.realname}</td>
												<td >{$vss.mobile}</td>
												<td >{$vss.address}</td>
												<td class="hidden-xs" >{$vss.wotab}</td>
												
												<td class="hidden-xs">{$vss.ctime|date='Y-m-d',###}</td>
												<td class="hidden-xs">{$vss.remark}</td>
												<td>
													<if condition="$vss['isshow'] eq 1">
														<a class="red state-btn" href="{:U('news_state')}" data-id="{$vss.id}" title="已处理">
															<div id="zt{$vss.id}"><button class="btn btn-minier btn-yellow">已处理</button></div>
														</a>
														<else/>
														<a class="red state-btn" href="{:U('news_state')}" data-id="{$vss.id}" title="未处理">
															<div id="zt{$vss.id}"><button class="btn btn-minier btn-danger">未处理</button></div>
														</a>
													</if>
													<div class="hidden-md hidden-lg">
															<div class="inline position-relative">
																<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
																	<i class="ace-icon fa fa-cog icon-only bigger-110"></i>
																</button>
																<ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
																	
																	<li>
																		<a href="{:U('news_edit',array('n_id'=>$v['n_id']))}" class="tooltip-success" data-rel="tooltip" title="" data-original-title="修改">
																			<span class="green">
																				<i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
																			</span>
																		</a>
																	</li>

															
																</ul>
															</div>
													</div>
												</td>
											</tr>
										</volist>
										<tr>
											<td align="left">	
											<button class="btn btn-white btn-yellow btn-sm">删</button> 
											</td>
											<td></td>
											<td align="left">	
											<input  id = "btnsubmit"    class="btn btn-white btn-yellow btn-sm" type="button" value="审核"/>
											
											</td>
											
											<td colspan="8" align="right" class="hidden-xs">{$page}</td>
											<td colspan="8" align="right" class="hidden-lg hidden-md hidden-sm">{$page_min}</td>
										</tr>
										</tbody>
									</table>
									
								</div>
							</form>
						</div>
					</div>
				</div>

				<include file='Common:header_nav' />

			</div><!-- /.page-content -->
		</div>
	</div><!-- /.main-content -->
	<include file='Common:footer' />

</div><!-- /.main-container -->
<script type="text/javascript" src="__PUBLIC__/sldate/moment.js"></script>
<script type="text/javascript" src="__PUBLIC__/sldate/daterangepicker.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$('#ctime').daterangepicker(null, function(start, end, label) {
			console.log(start.toISOString(), end.toISOString(), label);
		});
		
	});
</script>
</body>
</html>
